<template>
  <div class="cls1">
    <h2>这是关于我们 - About</h2>
    <router-link to="/about/tab1">企业文化</router-link>
    |
    <router-link to="/about/tab2">企业介绍</router-link>
    <hr>
    <div class="viewBox">
      <router-view></router-view>
    </div>
  </div>
</template>

<script setup>
import {useRoute} from 'vue-router'

const route = useRoute()
console.log("hash:" + route.hash)//接收参数
</script>

<style scoped>
.cls1 {
  background: #fde;
  min-height: 500px;
}

.cls1 h2 {
  margin: 0;
  padding: 0;
}

.viewBox {
  min-height: 200px;
  background: #dfe;
}
</style>